package com.lg.houtai.manager;

import com.lg.wxq.ui.MainActivity;

public class MainActivityManager {
	private static MainActivityManager instance=new MainActivityManager();
	private MainActivity main;
	
	private MainActivityManager(){
		
	}
	
	public static MainActivityManager getInstance(){
		return instance;
	}
	
	public void setMainActivity(MainActivity act){
		main=act;
	}
	
	public MainActivity getMainActivity(){
		if(main==null){
			throw new RuntimeException("没有设置主Activity");
		}
		return main;
	}
}
